<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>账户激活状态 - 故事电影平台</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
        }

        body {
            background: linear-gradient(135deg, #f0f5ff, #e6ecfa, #dde5f7);
            color: #333;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 0;
        }

        .container {
            max-width: 800px;
            width: 100%;
            background: #ffffff;
            border-radius: 20px;
            overflow: hidden;
            position: relative;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
            margin: 0 auto;
            animation: fadeIn 0.8s ease-out;
        }

        /* 头部样式 */
        .header {
            background: linear-gradient(90deg, #ffcc00, #ff6b00);
            padding: 30px 20px;
            text-align: center;
            position: relative;
        }

        .logo {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin-bottom: 15px;
        }

        .logo-icon {
            font-size: 32px;
            color: #1a1a2e;
            animation: pulse 2s infinite;
        }

        .logo-text {
            font-size: 28px;
            font-weight: 800;
            color: #1a1a2e;
            letter-spacing: 0.5px;
        }

        .header h1 {
            font-size: 24px;
            color: #1a1a2e;
            margin-top: 10px;
            font-weight: 600;
        }

        /* 内容区域 */
        .content {
            padding: 40px 30px;
        }

        /* 状态卡片 */
        .status-card {
            background: #f8f9fc;
            border-radius: 16px;
            padding: 40px;
            margin: 30px 0;
            text-align: center;
            border: 1px solid #eaeef5;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
            position: relative;
            overflow: hidden;
        }

        .status-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            border-radius: 5px 5px 0 0;
        }

        /* 成功状态样式 */
        .success .status-card::before {
            background: linear-gradient(90deg, #4CAF50, #2E7D32);
        }

        .success .status-icon {
            background: rgba(76, 175, 80, 0.1);
            border: 3px solid #4CAF50;
            color: #4CAF50;
        }

        .success .status-title::after {
            background: linear-gradient(90deg, #4CAF50, #2E7D32);
        }

        .success .action-btn.primary-btn {
            background: linear-gradient(90deg, #4CAF50, #2E7D32);
            color: white;
            box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
        }

        /* 失败状态样式 */
        .error .status-card::before {
            background: linear-gradient(90deg, #f44336, #c62828);
        }

        .error .status-icon {
            background: rgba(244, 67, 54, 0.1);
            border: 3px solid #f44336;
            color: #f44336;
        }

        .error .status-title::after {
            background: linear-gradient(90deg, #f44336, #c62828);
        }

        .error .action-btn.primary-btn {
            background: linear-gradient(90deg, #f44336, #c62828);
            color: white;
            box-shadow: 0 5px 15px rgba(244, 67, 54, 0.3);
        }

        .status-icon {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 48px;
            margin: 0 auto 25px;
            animation: scaleIn 0.5s ease-out;
        }

        .status-title {
            font-size: 32px;
            margin-bottom: 20px;
            font-weight: 700;
            position: relative;
            padding-bottom: 15px;
        }

        .status-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            border-radius: 2px;
        }

        .status-message {
            font-size: 18px;
            line-height: 1.7;
            margin-bottom: 30px;
            color: #555;
            max-width: 600px;
            margin: 20px auto 30px;
        }

        .status-info {
            background: #ffffff;
            border-radius: 12px;
            padding: 25px;
            margin: 30px 0;
            text-align: left;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
            border: 1px solid #eaeef5;
            animation: slideUp 0.6s ease-out;
        }

        .info-item {
            display: flex;
            margin-bottom: 18px;
            padding-bottom: 18px;
            border-bottom: 1px solid #eaeef5;
        }

        .info-item:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }

        .info-label {
            width: 140px;
            color: #ff6b00;
            font-weight: 600;
            font-size: 16px;
            flex-shrink: 0;
        }

        .info-value {
            flex: 1;
            color: #444;
            font-size: 16px;
            font-weight: 500;
        }

        /* 按钮容器 */
        .btn-container {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin: 30px 0 20px;
            flex-wrap: wrap;
        }

        .action-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 16px 40px;
            border-radius: 50px;
            font-size: 18px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            position: relative;
            overflow: hidden;
            z-index: 1;
            text-align: center;
            border: none;
            outline: none;
            gap: 10px;
        }

        .primary-btn {
            color: white;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
        }

        .secondary-btn {
            background: transparent;
            color: #ff6b00;
            border: 2px solid #ff6b00;
            box-shadow: 0 3px 10px rgba(255, 108, 0, 0.1);
        }

        .action-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        }

        .action-btn:active {
            transform: translateY(0);
        }

        /* 安全提示 */
        .security-note {
            background: rgba(244, 67, 54, 0.05);
            border: 1px solid rgba(244, 67, 54, 0.15);
            border-radius: 12px;
            padding: 20px;
            margin: 30px 0 25px;
            font-size: 16px;
            color: #d32f2f;
            line-height: 1.7;
            display: flex;
            align-items: flex-start;
            gap: 15px;
            animation: fadeIn 0.8s ease-out 0.3s forwards;
            opacity: 0;
        }

        .security-note i {
            font-size: 22px;
            margin-top: 4px;
        }

        /* 页脚 */
        .footer {
            text-align: center;
            padding: 30px;
            color: #666;
            font-size: 14px;
            border-top: 1px solid #eaeef5;
            background: #f8f9fc;
            line-height: 1.7;
        }

        .footer p {
            margin-bottom: 8px;
        }

        .contact-info {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-top: 15px;
            flex-wrap: wrap;
        }

        .contact-item {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #ff6b00;
            font-weight: 500;
        }

        /* 动画效果 */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes scaleIn {
            from { transform: scale(0.8); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }

        @keyframes slideUp {
            from { transform: translateY(30px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        /* 响应式调整 */
        @media (max-width: 768px) {
            .content {
                padding: 30px 20px;
            }

            .header {
                padding: 25px 15px;
            }

            .logo-text {
                font-size: 24px;
            }

            .header h1 {
                font-size: 20px;
            }

            .status-card {
                padding: 30px 20px;
            }

            .status-title {
                font-size: 28px;
            }

            .status-message {
                font-size: 16px;
            }

            .status-info {
                padding: 20px;
            }

            .btn-container {
                flex-direction: column;
                gap: 15px;
            }

            .action-btn {
                width: 100%;
            }
        }

        @media (max-width: 480px) {
            .info-item {
                flex-direction: column;
                gap: 8px;
            }

            .info-label {
                width: 100%;
                padding-bottom: 5px;
            }

            .status-icon {
                width: 80px;
                height: 80px;
                font-size: 36px;
            }
        }
    </style>
</head>
<body th:class="${status == 'success'} ? 'success' : 'error'">
<!-- 主容器 -->
<div class="container">
    <!-- 头部 -->
    <div class="header">
        <div class="logo">
            <i class="fas fa-film logo-icon"></i>
            <div class="logo-text">故事电影平台</div>
        </div>
        <h1>账户激活状态</h1>
    </div>

    <!-- 内容区域 -->
    <div class="content">
        <!-- 成功状态内容 -->
        <div class="status-card" th:if="${status == 'success'}">
            <div class="status-icon">
                <i class="fas fa-check-circle"></i>
            </div>

            <h2 class="status-title">账户激活成功！</h2>

            <p class="status-message">
                恭喜！您的账户已成功激活。现在可以登录并享受故事电影平台的所有功能，包括电影观看、收藏和个性化推荐。
            </p>

            <div class="status-info">
                <div class="info-item">
                    <div class="info-label">账户邮箱：</div>
                    <div class="info-value" th:text="${email}">user@example.com</div>
                </div>
                <div class="info-item">
                    <div class="info-label">用户名：</div>
                    <div class="info-value" th:text="${username}">movie_lover</div>
                </div>
                <div class="info-item">
                    <div class="info-label">激活时间：</div>
                    <div class="info-value" th:text="${activationTime}">2025年7月6日 15:30:22</div>
                </div>
            </div>

            <div class="btn-container">
                <a href="#" class="action-btn primary-btn">
                    <i class="fas fa-ticket-alt"></i> 立即登录
                </a>
                <a href="#" class="action-btn secondary-btn">
                    <i class="fas fa-home"></i> 返回首页
                </a>
            </div>
        </div>

        <!-- 失败状态内容 -->
        <div class="status-card" th:if="${status != 'success'}">
            <div class="status-icon">
                <i class="fas fa-exclamation-circle"></i>
            </div>

            <h2 class="status-title">账户激活失败</h2>

            <p class="status-message">
                很抱歉，账户激活过程中出现问题。可能是由于激活链接已过期或无效。
                请尝试重新发送激活邮件或联系客服解决此问题。
            </p>

            <div class="status-info">
                <div class="info-item">
                    <div class="info-label">错误代码：</div>
                    <div class="info-value" th:text="${errorCode}">ACT-401</div>
                </div>
                <div class="info-item">
                    <div class="info-label">账户邮箱：</div>
                    <div class="info-value" th:text="${email}">user@example.com</div>
                </div>
                <div class="info-item">
                    <div class="info-label">尝试时间：</div>
                    <div class="info-value" th:text="${activationTime}">2025年7月6日 15:28:45</div>
                </div>
                <div class="info-item">
                    <div class="info-label">可能原因：</div>
                    <div class="info-value">
                        <ul style="padding-left: 20px; margin-top: 5px;">
                            <li>激活链接已过期（超过24小时）</li>
                            <li>激活链接已被使用</li>
                            <li>账户已被激活</li>
                        </ul>
                    </div>
                </div>
            </div>

            <div class="btn-container">
                <a href="#" class="action-btn primary-btn">
                    <i class="fas fa-redo"></i> 重新发送激活邮件
                </a>
                <a href="#" class="action-btn secondary-btn">
                    <i class="fas fa-headset"></i> 联系客服支持
                </a>
            </div>
        </div>

        <!-- 安全提示 -->
        <div class="security-note">
            <i class="fas fa-shield-alt"></i>
            <div th:if="${status == 'success'}">
                <strong>安全提示：</strong> 请妥善保管您的账户信息。首次登录后，建议您设置双重验证以增强账户安全性。
                如遇到任何问题，请联系我们的客服团队。
            </div>
            <div th:if="${status != 'success'}">
                <strong>安全提示：</strong> 请勿向任何人透露您的账户信息。如果您没有尝试激活账户，
                请立即联系客服以确保您的账户安全。
            </div>
        </div>
    </div>

    <!-- 页脚 -->
    <div class="footer">
        <p>© 2025 故事电影平台 版权所有</p>
        <div class="contact-info">
            <div class="contact-item">
                <i class="fas fa-envelope"></i>
                <span>support@storycinema.com</span>
            </div>
            <div class="contact-item">
                <i class="fas fa-phone-alt"></i>
                <span>400-123-4567</span>
            </div>
            <div class="contact-item">
                <i class="fas fa-clock"></i>
                <span>9:00-22:00</span>
            </div>
        </div>
        <p style="margin-top: 20px;">此页面仅用于账户激活状态展示，请勿直接回复</p>
    </div>
</div>

<script>
    document.addEventListener('DOMContentLoaded', function() {
        // 按钮悬停效果
        const buttons = document.querySelectorAll('.action-btn');
        buttons.forEach(button => {
            button.addEventListener('mouseenter', () => {
                button.style.transform = 'translateY(-3px)';
            });
            button.addEventListener('mouseleave', () => {
                button.style.transform = 'translateY(0)';
            });
        });
    });
</script>
</body>
</html>